package com.hue.client;

import com.hue.entity.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "service-email")
public interface EmailFeignService {
    /*
       发送邮件到那个地址
    */
    @GetMapping("/email/sendEmail/{to}")
    public R sendEmail(@PathVariable("to") String to);
}
